package JavaClassroom;

public class seatwork3 {
    public static void main(String[] args) {
       double a=5000;
       double b=0.05;
       int year=0;
       while (a<10000){
           a*=(1+b);
           year++;
       }
        System.out.println("工人工资将在"+year+"年后达到10000");
    }
}
